package net.pimpas.validation.serviceprovider.impl;

import net.pimpas.framework.PimpasFramework;
import net.pimpas.validation.serviceprovider.ValidationServiceProvider;
import net.pimpas.validation.serviceprovider.ValidationServiceProviderFactory;

public class ValidationServiceProviderFactoryImpl implements ValidationServiceProviderFactory {
	
	public static ValidationServiceProvider getValidationServiceProvider(Object... parameters) {
		return new ValidationServiceProviderFactoryImpl().getServiceProvider(parameters);
	}

	public ValidationServiceProvider getServiceProvider(Object... parameters) {
		return (ValidationServiceProvider) PimpasFramework.getCurrentInstance().getServiceProvider(ValidationServiceProvider.class, parameters);
	}
}